#define  _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

void Chge(char* pa)
{
	char* p1 = pa;
	char* p2 = NULL;
	while (*pa != '\0')
	{
		p2 = pa;
		pa++;
	}

	while (p1 < p2)
	{
		char ptmp = *p1;
		*p1 = *p2;
		*p2 = ptmp;
		p1++;
		p2--;
	}
}
int main()
{
	char arr[] = "abcdef";
	Chge(arr);
	printf("%s\n",arr);

	return 0;
}